package nc.ui.ar.badacc;

import java.util.Map;

import nc.ui.arap.service.IRemoteCallItem;
import nc.vo.arap.badacc.DstlCaseVO;
import nc.vo.arap.service.ServiceVO;
import nc.vo.pub.BusinessException;

public class DstlCaseQueryCall implements IRemoteCallItem {

	protected ServiceVO serviceVO=null;
	
	private String code;
	
	private String pk_dstlcase;
	
	private BadAccDstlPanel ui;
	
	public DstlCaseQueryCall(String pk_dstlcase, BadAccDstlPanel ui) {
		this.pk_dstlcase = pk_dstlcase;
		this.ui = ui;
	}

	public ServiceVO getServiceVO() {
		if(serviceVO==null){
			serviceVO = new ServiceVO();
			serviceVO.setClassname("nc.itf.arap.badacc.IArapDstlCaseQuery");
			serviceVO.setMethodname("querySimpleDstlCases");
			serviceVO.setParamtype(new Class[] {String[].class});
			serviceVO.setParam(new Object[] {new String[] {pk_dstlcase}});
			code = serviceVO.getCode();
		}
		return serviceVO;
	}

	public void handleResult(Map<String, Object> datas)
			throws BusinessException {
		DstlCaseVO[] vo =(DstlCaseVO[]) datas.get(code);
//		ui.setDstlCase(vo[0]);

	}

}
